﻿@{
    Layout = null;
}


<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>前期测算制作</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="~/Content/layui2/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="~/Content/layui2/layuiadmin/style/admin.css" media="all">

    <script>
        /^http(s*):\/\//.test(location.href) || alert('请先部署到 localhost 下再访问');
    </script>
</head>
<body class="layui-layout-body">

    <div id="LAY_app">
        <div class="layui-layout layui-layout-admin">
            <div class="layui-header">
                <!-- 头部区域 -->
                <ul class="layui-nav layui-layout-left">
                    <li class="layui-nav-item layadmin-flexible" lay-unselect>
                        <a href="javascript:;" layadmin-event="flexible" title="侧边伸缩">
                            <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
                        </a>
                    </li>
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:;" layadmin-event="refresh" title="刷新">
                            <i class="layui-icon layui-icon-refresh-3"></i>
                        </a>
                    </li>
                    <li class="layui-nav-item" lay-unselect>
                        <p style="font-size:18px;color:black">@ViewBag.ProjectName ——@ViewBag.PreEstName</p>
                    </li>
                </ul>

            </div>

            <!-- 侧边菜单 -->
            <div class="layui-side layui-side-menu">
                <div class="layui-side-scroll">
                    <div class="layui-logo" lay-href="home/console.html">
                        <span>前期测算</span>
                    </div>

                    <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">

                        <li data-name="get" class="layui-nav-item">
                            <a href="javascript:;" id="PELink" lay-href="/Estimate/PEView" lay-tips="授权" lay-direction="2">
                                <i class="layui-icon layui-icon-auz"></i>
                                <cite>汇总表</cite>
                            </a>
                        </li>
                        @if ("用户工程前期测算" == ViewBag.ProjectType)   //用户工程前期测算 第二次
                        {
                            <li data-name="get" class="layui-nav-item">
                                <a href="javascript:;" lay-href="/Estimate/CSContrastView?PreEstId=@ViewBag.PreEstId&ProjectType=@ViewBag.ProjectType" lay-tips="授权" lay-direction="2">
                                    <i class="layui-icon layui-icon-auz"></i>
                                    <cite>数据对比</cite>
                                </a>
                            </li>
                        }
                        @if ("用户工程" == ViewBag.ProjectType)   //用户工程报价测算 第一次
                        {
                            <li data-name="get" class="layui-nav-item">
                                <a href="javascript:;" lay-href="/Estimate/YHBJContrastView?PreEstId=@ViewBag.PreEstId&ProjectType=@ViewBag.ProjectType" lay-tips="授权" lay-direction="2">
                                    <i class="layui-icon layui-icon-auz"></i>
                                    <cite>数据对比</cite>
                                </a>
                            </li>
                        }
                        @if ("主业" == ViewBag.ProjectType)   //主业前期测算  第一次
                        {
                            <li data-name="get" class="layui-nav-item">
                                <a href="javascript:;" lay-href="/Estimate/ZYCSContrastView?PreEstId=@ViewBag.PreEstId&ProjectType=@ViewBag.ProjectType" lay-tips="授权" lay-direction="2">
                                    <i class="layui-icon layui-icon-auz"></i>
                                    <cite>数据对比</cite>
                                </a>
                            </li>
                        }
                        @if ("主业结算" == ViewBag.ProjectType)   //主业前期测算结算 第二次
                        {
                            <li data-name="get" class="layui-nav-item">
                                <a href="javascript:;" lay-href="/Estimate/ZYJSContrastView?PreEstId=@ViewBag.PreEstId&ProjectType=@ViewBag.ProjectType" lay-tips="授权" lay-direction="2">
                                    <i class="layui-icon layui-icon-auz"></i>
                                    <cite>数据对比</cite>
                                </a>
                            </li>
                        }
                        <li data-name="get" class="layui-nav-item">
                            <a href="javascript:;" id="PEInstallLink" lay-href="/Estimate/InstallView" lay-tips="授权" lay-direction="2">
                                <i class="layui-icon layui-icon-auz"></i>
                                <cite>安装成本</cite>
                            </a>
                        </li>
                        <li data-name="get" class="layui-nav-item">
                            <a href="javascript:;" lay-href="/Estimate/PECivilPriceView" lay-tips="授权" lay-direction="2">
                                <i class="layui-icon layui-icon-auz"></i>
                                <cite>土建成本</cite>
                            </a>
                        </li>
                        <li data-name="get" class="layui-nav-item">
                            <a href="javascript:;" id="PEEquipLink" lay-href="/Estimate/PEEquipFeeView" lay-tips="授权" lay-direction="2">
                                <i class="layui-icon layui-icon-auz"></i>
                                <cite>设备成本</cite>
                            </a>
                        </li>
                        <li data-name="get" class="layui-nav-item">
                            <a href="javascript:;" id="PEMaterialLink" lay-href="/Estimate/PEMaterialFeeView" lay-tips="授权" lay-direction="2">
                                <i class="layui-icon layui-icon-auz"></i>
                                <cite>材料成本</cite>
                            </a>
                        </li>
                        <li data-name="get" class="layui-nav-item">
                            <a href="javascript:;" lay-href="/Estimate/PETestFeeView" lay-tips="授权" lay-direction="2">
                                <i class="layui-icon layui-icon-auz"></i>
                                <cite>试验费明细</cite>
                            </a>
                        </li>
                        <li data-name="get" class="layui-nav-item">
                            <a href="javascript:;" lay-href="/Estimate/PECoordFeeView" lay-tips="授权" lay-direction="2">
                                <i class="layui-icon layui-icon-auz"></i>
                                <cite>协调费明细</cite>
                            </a>
                        </li>

                    </ul>
                </div>
            </div>

            <!-- 页面标签 -->
            <div class="layadmin-pagetabs" id="LAY_app_tabs">
                <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
                <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
                <div class="layui-icon layadmin-tabs-control layui-icon-down">
                    <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
                        <li class="layui-nav-item" lay-unselect>
                            <a href="javascript:;"></a>
                            <dl class="layui-nav-child layui-anim-fadein">
                                <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
                                <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
                                <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
                            </dl>
                        </li>
                    </ul>
                </div>
                <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
                    <ul class="layui-tab-title" id="LAY_app_tabsheader">
                        <li lay-id="home/console.html" lay-attr="home/console.html" class="layui-this"><i class="layui-icon layui-icon-home"></i></li>
                    </ul>
                </div>
            </div>


            <!-- 主体内容 -->
            <div class="layui-body" id="LAY_app_body">
                <div class="layadmin-tabsbody-item layui-show">
                        @*<iframe src="/Home/console" frameborder="0" class="layadmin-iframe"></iframe>*@
                    <div>前期测算表</div>
                </div>
            </div>

            <!-- 辅助元素，一般用于移动设备下遮罩 -->
            <div class="layadmin-body-shade" layadmin-event="shade"></div>
        </div>
    </div>

    <input value="" id="PreEstId" style="display:none" />
    <input value="" id="ProjectType" style="display:none" />

    @*<script src="~/c/layuiadmin/layui/layui.js"></script>*@
    <script src="~/Content/layui2/layuiadmin/layui/layui.js"></script>
    <script src="~/Scripts/jquery-3.3.1.js"></script>
    <script>
        layui.config({
            base: '/Content/layui2/layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use('index');

        //function getQueryString(name) {
        //    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        //    var r = window.location.search.substr(1).match(reg);
        //    if (r != null) return unescape(r[2]); return null;
        //}
        //var id = getQueryString("PreEstId");
        $("#PreEstId").val("@ViewBag.PreEstId");
        $("#ProjectType").val("@ViewBag.ProjectType");
        //top.location.replace("https://www.baidu.com/");
        $("#PELink").attr("lay-href", "/Estimate/PEView?PreEstId=" +@ViewBag.PreEstId+"&ProjectType=@ViewBag.ProjectType");
        $("#PEEquipLink").attr("lay-href", "/Estimate/PEEquipFeeView?PreEstId=" +@ViewBag.PreEstId+"&ProjectType=@ViewBag.ProjectType");
        $("#PEMaterialLink").attr("lay-href", "/Estimate/PEMaterialFeeView?PreEstId=" +@ViewBag.PreEstId+"&ProjectType=@ViewBag.ProjectType");
        $("#PEInstallLink").attr("lay-href", "/Estimate/InstallView?PreEstId=" +@ViewBag.PreEstId+"&ProjectType=@ViewBag.ProjectType");

    </script>

</body>
</html>